/* CSS para Últimas Notícias */

html, body {
    margin: 0;
    padding: 0;
    background-color: #f4f1ec;
    font-family: 'Georgia', serif;
    color: #3b2f2f;
    max-width: 2400px;
    overflow-x: hidden ;
}

.ultimas-noticias {
    padding: 60px 20px;
    text-align: center;
    background-color:  rgb(255, 235, 179);
}

.ultimas-noticias h1 {
    font-size: 48px;
    display: inline-block;
    padding: 14px 36px;
    background-color: white;
    color: #0c0505;
    border-radius: 10px;
    margin-bottom: 55px;
    border: 2px solid #000;
    box-shadow: 5px 5px 0px #000;
}

   .banner {
    position: relative;
    top: -3px; /* move o banner para cima */
    right: -50px;
    width: 300px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto -50px auto; /* o negativo puxa visualmente para cima */
}

.cards-noticia {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    flex-direction: row;
    padding: 0 20px;
    align-items: flex-start;
}

.card-noticia {
    width: 220px;
    background-color: white;
    border: 2px solid #000;
    border-radius: 16px;
    box-shadow: 5px 5px 0px #000;
    text-decoration: none;
    color: inherit;
    padding: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;

}

.card-noticia img {
    width: 100%;
    max-width: 180px;
    height: auto;
    display: block;
    margin-bottom: 12px;
    border-radius: 8px;
    max-height: 180px;
}

.card-noticia h2 {
    font-size: 22px;
    margin-bottom: 10px;
    text-align: center;
}

.card-noticia p {
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.card-noticia:hover {
    transform: translateY(-8px);
    box-shadow: 10px 10px 0px #000;
}

.card-noticia:hover h2 {
    text-decoration: underline;
}


img {
    max-width: 300px;  /* não ultrapassa o tamanho do container */
    height: auto;     /* mantém proporção */
    display: block;   /* remove espaçamento em linha */
    margin: 0 auto 10px auto;   /* centraliza a imagem */
}


footer {
    text-align: center;
    padding: 20px;
    background-color: #fff9e6;
    border-top: 2px solid #000;
}

